/**
 * IBatisSqlMapConfigWizardTestCase.java : [com.ibader.eclipse.test.testcase] Created on 2009. 5. 17.
 *
 * Copyright (c) 2009 Raccoon Project Team.
 * Seoul, Korea
 * All rights reserved.
 *
 */
package com.ibader.eclipse.test.testcase;


import junit.framework.TestCase;

import org.eclipse.ui.PlatformUI;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;

import com.ibader.eclipse.test.utils.IBaderUtil;
import com.ibader.eclipse.wizards.SqlMapConfigWizard;

/**
 * @author KimJungSu
 * @version
 */
public class IBatisSqlMapConfigWizardTestCase extends TestCase{

	private static final String PLUGIN_ID =
		"com.ibader.eclipse.wizards.IBatisSqlMapConfigWizard";

	private SqlMapConfigWizard sqlMapConfigWizard;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @author KimJungSu
	 * @version
	 *
	 */

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		super.setUp();

		// wait for IBatisSqlMapConfigWizard
		IBaderUtil.waitForJobs(1000);

		sqlMapConfigWizard =  (SqlMapConfigWizard)PlatformUI
							.getWorkbench()
							.getActiveWorkbenchWindow()
							.getWorkbench()
							.getNewWizardRegistry()
							.findWizard(PLUGIN_ID);

		// wait for load xml file
		IBaderUtil.waitForJobs(3000);

		// any jobs...
	}

	@After
	public void tearDown() throws Exception {
		super.tearDown();

		IBaderUtil.waitForJobs(1000);

		// destory IBatisSqlMapConfigWizard
	}
}
